﻿namespace MicroBlog.Models
{
    /// <summary>
    /// 博客
    /// </summary>
    public class Blog : Model
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 封面图片
        /// </summary>
        public string Cover { get; set; }
        /// <summary>
        /// 概述
        /// </summary>
        public string Overview { get; set; }
        /// <summary>
        /// 查看次数
        /// </summary>
        public int Views { get; set; }
        /// <summary>
        ///  发布日期
        /// </summary>
        public DateTime Created { get; set; }

        /// <summary>
        /// 博客内容
        /// </summary>
        public virtual BlogContent BlogContent { get; set; }
        /// <summary>
        /// 博客的标签
        /// </summary>
        public virtual ICollection<Tag> Tags { get; set; }
    }
}
